import request from '@/utils/request'

// 查询岗位预测记录列表
export function listPredict(query) {
  return request({
    url: '/trainScript/predict/list',
    method: 'get',
    params: query
  })
}

// 查询岗位预测记录详细
export function getPredict(id) {
  return request({
    url: '/trainScript/predict/' + id,
    method: 'get'
  })
}

// 新增岗位预测记录
export function addPredict(data) {
  return request({
    url: '/trainScript/predict',
    method: 'post',
    data: data
  })
}

// 修改岗位预测记录
export function updatePredict(data) {
  return request({
    url: '/trainScript/predict',
    method: 'put',
    data: data
  })
}

// 删除岗位预测记录
export function delPredict(id) {
  return request({
    url: '/trainScript/predict/' + id,
    method: 'delete'
  })
}
